/*
 * @Author: samfeng
 * @Date: 2021-04-18 12:15:32
 * @LastEditTime: 2021-04-30 23:57:42
 * @LastEditors: Please set LastEditors
 * @Description: 公共头部
 * @FilePath: /first_flutter_app/lib/views/publicTopTitle/publicTopTitle.dart
 */

import 'package:first_flutter_app/constant/dataInfo.dart';
import 'package:flutter/material.dart';
// import 'package:flutter_screenutil/flutter_screenutil.dart';

class PublicTitleWidget extends StatelessWidget {
  String timestamp = DateTime.now().month.toString() +
      "月" +
      DateTime.now().day.toString() +
      "日  " +
      chineseDD[DateTime.now().weekday];

  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      color: Colors.blueGrey,
      padding: EdgeInsets.fromLTRB(1, 1, 1, 1),
      // decoration: BoxDecoration(
      //     color: Colors.white,
      //     border:
      //         Border(bottom: BorderSide(width: 5.0, color: Colors.black12))),
      child: Text(
        timestamp,
        style: TextStyle(color: Colors.white, fontSize: 15.0),
      ),
    );
  }
}
